<?php
class AdminAction extends Action{
	public function index(){
		$this->display('admin');
	}
	
	//加载头部文件
	public function top(){
		$this->display();
	}
	//加载sidebar
	public function sidebar(){
	
		$this->display();
	}
	
	
	//加载main
	public function main(){
		$Admin=M("Administrator");
		$list=$Admin->where('id=6')->select();
		$time=$list[0]['last_time'];
		$this->assign('admin_user',$list[0]['admin_name']);
		$this->assign('last_time',$list[0]['last_time']);
		$this->assign('IpAddress',$_SERVER['SERVER_ADDR']);
		$this->display();
	}
			
}

?>